package com.ruoyi.comment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论信息对象 comment
 * 
 * @author ruoyi
 * @date 2025-06-03
 */
public class Comment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论id */
    private Long commentid;

    /** 评论编号 */
    @Excel(name = "评论编号")
    private Long articlesn;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String commentcontent;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date commenttime;

    public void setCommentid(Long commentid) 
    {
        this.commentid = commentid;
    }

    public Long getCommentid() 
    {
        return commentid;
    }
    public void setArticlesn(Long articlesn) 
    {
        this.articlesn = articlesn;
    }

    public Long getArticlesn() 
    {
        return articlesn;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setCommentcontent(String commentcontent) 
    {
        this.commentcontent = commentcontent;
    }

    public String getCommentcontent() 
    {
        return commentcontent;
    }
    public void setCommenttime(Date commenttime) 
    {
        this.commenttime = commenttime;
    }

    public Date getCommenttime() 
    {
        return commenttime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commentid", getCommentid())
            .append("articlesn", getArticlesn())
            .append("username", getUsername())
            .append("commentcontent", getCommentcontent())
            .append("commenttime", getCommenttime())
            .toString();
    }
}
